<%@ page import="com.apexedu.portal.entity.TFrontdeskNews" %>
<%@ page import="com.apexedu.portal.constant.Constants" %>
<%@ page import="com.apexedu.portal.constant.ActionConstant" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    request.setAttribute("basePath", request.getContextPath());
    TFrontdeskNews tfrontdesknews = (TFrontdeskNews)request.getAttribute("tfrontdesknews");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title><%=Constants.ProjectInfo.PROJECT_NAME%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${basePath}/resources/css/mh.sdyz.css" rel="stylesheet">
    <script type="text/javascript" src="${basePath}/clientui/js/jquery-1.4.js"></script>
    <script src="${basePath}/resources/js/mh.sdyz.index.js" type="text/javascript"></script>
    <!--分页start-->
    <script type="text/javascript" src="${basePath}/resources/js/common.js"></script>
    <script type="text/javascript" src="${basePath}/component/jquery.pagination/jquery.pagination.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="${basePath}/component/jquery.pagination/pagination.css" />
    <!--分页end-->
</head>
<body>
<style>
    body,h1,h2,h3,h4,h5,h6,ul,li,a,p{margin:0;padding:0;text-decoration: none;}
    img{ border:none}
    ul{list-style:none;}
    li{letter-spacing:1px; list-style:none}
    /*主体*/
    .acon{width:80%;background-color:#FFFFFF; border-radius:5px; margin:8px auto; padding-top: 5px;}
    .list{}
    .list ul{list-style:none;line-height:35px;}
    .list ul li{ width:100%;overflow:hidden;text-overflow:ellipsis; white-space:nowrap;position:relative;line-height:35px;height:35px; padding:0px 100px 0px 0px;border-bottom: 1px dashed #dbdbdb}
    .list ul li span{ margin:0; padding:0; list-style:none;text-align: left;}
    .list ul li em{color:#999;position:absolute;padding-left:6px;font-size:14px;float:right;ont-style:normal;right: 30px;margin-right: 5px;top:30px;}
    .list ul li a{text-decoration:none; color:#343434}
    .list ul li a:hover{text-decoration:none; color:#343434}
    /* 翻页*/
    DIV.meneame {height:50px; color:#209029; text-align:center}
    DIV.meneame a {border: #649ee6 1px solid; background-color:#f3f1f2; padding:10px; font-weight:bold; margin-right:5px; color:#084189; background-position: 50% bottom; text-decoration:none}
    DIV.meneame a:hover {border: #165ab1 1px solid; background-color: #87b9f8; color:#084189; background-image:none}
    DIV.meneame a:active {border:#ff9600 1px solid; background-color:#c9ddc6; color:#084189; background-image:none}
    DIV.meneame SPAN.current {border: #c4c4c4 1px solid; background-color:#f3f1f2; padding:10px; font-weight:bold; margin-right:5px; color:#666}
    DIV.meneame SPAN.disabled {border: #c4c4c4 1px solid; background-color:#f3f1f2; padding:10px; font-weight:bold; margin-right:5px; color:#666}
    /* 翻页*/
    /*主体*/
    .keysearch{float: right;width: 320px;height:60px; line-height:60px; overflow:hidden;}
    .keysearch input{margin-right: 6px;height:30px; line-height:30px; overflow:hidden;font-size: 14px;}
</style>
<script type="text/javascript">
    function enterkey(eventObj,obj){
         if(!$.browser.mozilla){ //火狐不支持event.keyCode
            if (event.keyCode == 13){
                event.keyCode = 9;
                event.returnValue = false;
                key_sreach();
            }
        }else{
            if (eventObj.which == 13){
                eventObj.keyCode = 9;
                eventObj.returnValue = false;
                key_sreach();
             }
        }
    }
</script>
<div id="main">
    <input type="hidden" id="choosed" value="3"/>
    <jsp:include page="left.jsp"/>
    <div id="right">
        <jsp:include page="head.jsp"/>
        <form name="ysform" method="get">
            <input type="hidden" name="formname" value="ysform"/>
            <input type="hidden" name="state" value="1"/>
            <input type="hidden" name="gjz"  value="${gjz}"/>
            <input type="hidden" name="currentPageno" id="yspager_currentPageno" value="${pager.currentPageno }"/>
            <input type="hidden" name='eachPageRows' id='yspager_eachPageRows' value="${pager.eachPageRows }"/>
            <div style="background-color: #FFFFFF;width: 100%">
                <div class="acon">
                    <div style="border-bottom:2px solid #666666;height:70px; line-height:70px; padding-top:8px; padding-left:10px; font-size:14px;min-width:900px;">
                        <div id="lm_mc" style="text-align: left;width:650px; float:left;height:10px;">首页&gt; <a href="javascript:;" onclick="window.location.href='/s/uc/sdyz/fdn/<%=tfrontdesknews.getWeiz()%>'" ><%=tfrontdesknews.getLmmc()%></a></div>
                        <div class="keysearch">
                            <div style="float:left; width:240px;top:10px;  ">
                                <input type="text" id="key_ch" placeholder="搜索" onkeydown="enterkey(event,this)" value="${xs}"/>
                            </div>
                            <script type="text/javascript">
                                function key_sreach(){
                                    var key = $("#key_ch").val();
                                    var bash = '${basePath }';
                                    var wz='<%=tfrontdesknews.getWeiz()%>';
                                    if(key != null && key != ""){
                                        var url=bash+"/s/uc/sdyz/fdn/"+wz+"?gjz="+encodeURI(encodeURI(key));
                                         window.location.href = url;
                                    }else{
                                        alert("请填写关键字");
                                    }
                                }
                            </script>
                        </div>
                    </div>
                    <div>
                        <div class="list">
                            <ul>
                                <c:forEach var="twz" items="${resultList }">
                                    <li style="padding:12px 10px 12px 10px;text-align: left;height: 70px;">
                                        <span style="font-size: 22px;"><a href="${basePath}/s/uc/sdyz/fdnv/<%=tfrontdesknews.getWeiz()%>-${twz.wid}" title="${twz.title }" target="_blank">
                                                ${twz.title }
                                        </a>
                                        </span><br/>
                                        <span style="padding:5px 10px 2px 8px;">发布人：<a style="color: blue">${twz.cjr }</a>&nbsp;&nbsp;&nbsp;发布单位：<a style="color: blue">${twz.departname }</a>&nbsp;&nbsp;&nbsp;阅读：<a style="color: blue">${twz.djs }</a></span>
                                        <em><fmt:formatDate value="${twz.cjrq}" pattern="yyyy.MM.dd"/> </em>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <!-- 分页 -->
                        <div class="pagination" style="padding-top: 50px;">
                            <div id="pagelist" align="center">
                                ${pager.postToolBar }
                            </div>
                            <br/>
                        </div>
                        <div class="left_low"></div>
                        <!-- 分页部分 -->
                        <div style="clear:both"></div>
                    </div>
                </div>
            </div>
        </form>
</div>
</body>
</html>
